import request from "@/utils/request";

// 查询发票归档明细列表
export function listInvoiceCatalogueItem(query) {
  return request({
    url: "/business/invoiceCatalogueItem/list",
    method: "get",
    params: query,
  });
}
// 查询发票归档目录列表
export function listInvoiceCatalogue(query) {
  return request({
    url: "/business/invoice/catalogue",
    method: "get",
    params: query,
  });
}
// 查询发票归档明细所有列表
export function listAllInvoiceCatalogueItem(query) {
  return request({
    url: "/business/invoiceCatalogueItem/listAll",
    method: "get",
    params: query,
  });
}

// 查询发票归档明细详细
export function getInvoiceCatalogueItem(id) {
  return request({
    url: "/business/invoiceCatalogueItem/getInfo/" + id,
    method: "get",
  });
}

// 新增发票归档明细
export function addInvoiceCatalogueItem(data) {
  return request({
    url: "/business/invoiceCatalogueItem/add",
    method: "post",
    data: data,
  });
}

// 修改发票归档明细
export function updateInvoiceCatalogueItem(data) {
  return request({
    url: "/business/invoiceCatalogueItem/edit",
    method: "post",
    data: data,
  });
}

// 删除发票归档明细
export function delInvoiceCatalogueItem(id) {
  return request({
    url: "/business/invoiceCatalogueItem/remove/" + id,
    method: "get",
  });
}
